package models

// PostModel 帖子全字段！
type PostModel struct {
	PostId      string `json:"post_id" db:"post_id"`
	AuthorID    string `json:"author_id" db:"author_id"`
	CommunityId string `json:"community_id" db:"community_id"`
	Cover       string `json:"cover" db:"cover"`
	Status      string `json:"status" db:"status"`
	Title       string `json:"title" db:"title"`
	Description string `json:"description" db:"description"`
	Content     string `json:"content,omitempty" db:"content"`
	CreateTime  string `json:"create_time" db:"create_time"`
	UpdateTime  string `json:"update_time" db:"update_time"`
}

type PostDetailsModel struct {
	PostModel
	CommunityModel `json:"community"`
}
